#!/bin/bash

p=/Users/lin/Nextcloud2/code/4.tst7/web_lims
cd $p

echo "Start building."

npm run build:prod

echo "Build finished."

tar -zcf /Users/lin/tmp/lims.tar.gz dist

echo "Upload To Server"

scp /Users/lin/tmp/lims.tar.gz a04:/d/w/web_lims

ssh a04

echo "***End***"


